package com.shoulder.core.utils;

import jakarta.servlet.Filter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;

public class FilterUtils {

    public static <T extends Filter> FilterRegistrationBean<T> createFilterRegistrationBean(T filter, Integer order,String name) {
        FilterRegistrationBean<T> bean = new FilterRegistrationBean<>(filter);
        bean.setOrder(order);
        bean.setName(name);
        return bean;
    }
}
